<?php /* Smarty version Smarty-3.1.7, created on 2012-04-16 10:51:46
         compiled from ".\templates\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:311584f7a5512e44dc8-17686176%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '749422d4cfc3eb5677cf499730392b6accd4d1c7' => 
    array (
      0 => '.\\templates\\index.tpl',
      1 => 1334294646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '311584f7a5512e44dc8-17686176',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.7',
  'unifunc' => 'content_4f7a55130044c',
  'variables' => 
  array (
    'categorys' => 0,
    'k' => 0,
    'category' => 0,
    'article' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4f7a55130044c')) {function content_4f7a55130044c($_smarty_tpl) {?><html>
<head>
<title>SHONAN BBS</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="./CSS/style.css"
      rel= "stylesheet"
      type= "text/css"
      media="all" />
</head>
<body>
<?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>



<h1>SHONAN BBS</h1>
<hr noshade size="1" />

<div id="contentLeft">
<form action="submit.php" method="post" enctype="multipart/form-data">
内容<br>
<textarea name="content" cols="60" rows="10"></textarea><br>
ニックネーム<br>
<input type="text" name="nickname" size="20"><br>
カテゴリ<br>
<select name="category_id">
<?php  $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['category']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['categorys']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value){
$_smarty_tpl->tpl_vars['category']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['category']->key;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['category']->value;?>
</option>
<?php } ?>
</select><br>
url<br>
<input type="text" name="url" size="60"><br>
画像<br>
<input type="file" name="photo"><br>
<input type="hidden" name= "session_id" value="<?php echo $_SESSION['submit_id'];?>
">
<input type="submit" name="send" value="投稿する">
</form>
</div>

<div id="contentRight">
<?php echo $_smarty_tpl->getSubTemplate ("widget.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</div>
<div class="clr"></div>

<?php echo $_smarty_tpl->tpl_vars['article']->value;?>


<hr noshade size="1" />
<div id="footer">SHONAN BBS</div>
</body>
</html><?php }} ?>